Nvim lua master#2024
Closed
yokowasis wants to merge 13 commits intonvim-lua:masterfrom
Closed
Conversation
added 13 commits
March 6, 2026 21:56
There was a problem hiding this comment.
Pull request overview
This PR significantly customizes the Kickstart Neovim configuration by enabling additional Kickstart modules, importing a large set of lua/custom/plugins/* runtime-config files (keymaps/opts/functions/etc.), and expanding LSP/formatter/debugging setup.
Changes:
- Extend core
init.luawith Telescope ignores, LSP + Mason tool installation changes, Conform formatter configuration, Treesitter parser installation changes, and enabling additional kickstart plugins/imports. - Add many
lua/custom/plugins/*.luamodules that execute configuration at load time (opts/functions/keymaps/git/terminal/jupyter/startup/etc.) plus a custom plugins readme. - Add miscellaneous extra files (
test.{jsx,tsx,py}andinit.lua.bak).
Reviewed changes
Copilot reviewed 21 out of 21 changed files in this pull request and generated 18 comments.
Show a summary per file
| File | Description |
|---|---|
| test.tsx | Adds a simple TSX component example file. |
| test.jsx | Adds a simple JSX component example file. |
| test.py | Adds a simple Python “hello world” script. |
| lua/kickstart/plugins/debug.lua | Adds nvim-dap-virtual-text configuration to the DAP setup. |
| lua/custom/plugins/readme.md | Adds setup notes/instructions for the custom Neovim config. |
| lua/custom/plugins/blank.lua | Adds empty custom plugin spec placeholder. |
| lua/custom/plugins/99-keymaps.lua | Adds extensive custom keymaps. |
| lua/custom/plugins/98-bookmarks.lua | Adds empty custom plugin spec placeholder. |
| lua/custom/plugins/97-setup-plugins.lua | Adds LuaSnip setup, folds persistence, conform config, clangd override, and CodeCompanion config. |
| lua/custom/plugins/57-jupyter-setup.lua | Adds iron.nvim REPL and “send cell” functionality plus keymaps. |
| lua/custom/plugins/56-jupyter-plugin.lua | Adds iron.nvim plugin spec. |
| lua/custom/plugins/55-startup.lua | Adds session auto-load logic on startup. |
| lua/custom/plugins/53-window.lua | Adds window resize keymaps. |
| lua/custom/plugins/52-terminal.lua | Adds terminal helpers and git/snippet convenience commands. |
| lua/custom/plugins/51-navigation.lua | Adds tab/window navigation and Neo-tree keymaps. |
| lua/custom/plugins/50-git.lua | Adds git/neogit helpers and keymaps (pull/push/commit/reset/init-push). |
| lua/custom/plugins/01-opts.lua | Adds many global options and OS detection flags. |
| lua/custom/plugins/01-functions.lua | Adds helper functions (notify/job output, run/format helpers, scaffolding, buffer cleanup, etc.). |
| lua/custom/plugins/00-init.lua | Adds/overrides plugin list in custom.plugins import (img-clip, neo-tree, flash, codecompanion, etc.). |
| init.lua.bak | Adds a backup copy of init.lua content. |
| init.lua | Modifies core Kickstart config (nerd font, clipboard, telescope defaults, LSP/Mason, formatters, treesitter, module imports). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+165
to
+175
| vim.api.nvim_create_user_command('GitInitPush', function() | ||
| local username = 'yokowasis' | ||
| local repo = vim.fn.fnamemodify(vim.loop.cwd(), ':t') | ||
| if repo == '' then | ||
| print 'Could not determine repository name from current directory' | ||
| return | ||
| end | ||
| local remote = 'https://github.com/' .. username .. '/' .. repo .. '.git' | ||
| local cmd = 'git init && git add . && git commit -m "Initial commit" && git branch -M main && gh repo create ' | ||
| .. repo | ||
| .. ' --private --source=. --remote=origin --push' |
| @@ -0,0 +1,9 @@ | |||
| const Component = (props) => { | |||
Comment on lines
+26
to
+29
| - Install required Python packages: | ||
| ```bash | ||
| pip install pynvim neovim | ||
| ``` |
| vim.keymap.set('n', '<leader>gr', RevertToCommitUnderCursor, { desc = 'Reset HEAD to commit under cursor + force push' }) | ||
|
|
||
| vim.keymap.set('n', '<leader>ga', function() | ||
| local branchName = vim.fn.input 'Enter commit message: ' |
Comment on lines
+762
to
+765
| -- by the server configuration above. Useful when disabling | ||
| -- certain features of an LSP (for example, turning off formatting for ts_ls) | ||
| server.capabilities = vim.tbl_deep_extend('force', {}, capabilities, server.capabilities or {}) | ||
| require('lspconfig')[server_name].setup(server) |
| @@ -0,0 +1,109 @@ | |||
| --[[ | |||
Comment on lines
+1
to
+20
| -- Smart buffer delete function (for <leader><down>) | ||
| local function smart_buffer_delete() | ||
| local buffers = vim.fn.getbufinfo { buflisted = 1 } | ||
| local listed_buffers = {} | ||
|
|
||
| -- Count only listed buffers (exclude help, quickfix, etc.) | ||
| for _, buf in ipairs(buffers) do | ||
| if buf.listed == 1 then | ||
| table.insert(listed_buffers, buf) | ||
| end | ||
| end | ||
|
|
||
| -- If this is the last buffer, quit Neovim | ||
| if #listed_buffers <= 1 then | ||
| vim.cmd 'quit' | ||
| else | ||
| vim.cmd 'bdelete' | ||
| end | ||
| end | ||
|
|
Comment on lines
+73
to
+83
| -- Setup clangd with system preference (if system clangd is available and preferred) | ||
| -- This will override the main lspconfig setup with additional arguments | ||
| local has_system_clangd = vim.fn.executable('clangd') == 1 | ||
| local prefer_system_clangd = true -- Set to false if you want to use Mason's clangd | ||
|
|
||
| if has_system_clangd and prefer_system_clangd then | ||
| require('lspconfig').clangd.setup { | ||
| cmd = { 'clangd', '--background-index' }, | ||
| } | ||
| end | ||
|
|
| @@ -0,0 +1,9 @@ | |||
| const Component = (props) => { | |||
| @@ -0,0 +1 @@ | |||
| print("hello world") | |||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
NOTE
Please verify that the
base repositoryabove has the intended destination!Github by default opens Pull Requests against the parent of a forked repository.
If this is your personal fork and you didn't intend to open a PR for contribution
to the original project then adjust the
base repositoryaccordingly.